package top.api.mapper;

import org.springframework.stereotype.Repository;
import top.api.domain.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 27465
* @description 针对表【sys_role(角色信息表)】的数据库操作Mapper
* @createDate 2023-02-01 19:25:18
* @Entity top.api.domain.entity.Role
*/
@Repository
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据userId查询对应的角色
     * @param userID
     * @return
     */
    List<String> selectRoleKeyByUserID(Long userID);
}




